root, פורט חסום, ניתוק ומדידה — ואז מחברים מתג לשקע של מחשב ורואים אותו מת.root bridge ושינוי priority (5.1.9 Investigate STP Loop Prevention)STP ל-RSTPportfast ו-bpdu guard — הדגמת כיבוי פורט · root guardBID, ארבע הבחירות, מצבים, RSTP, ההגנות, הפקודות. שבוע 10: trunk. שבוע 17: אבחון.priority (root primary / ידני) ולראות את העץ מתחשב מחדשshow spanning-tree את ה-root, את תפקידי הפורטים ואת הפורט החסוםSTP מול RSTPportfast + bpduguard על פורט קצה ולהדגים כיבוי פורט כשמחברים מתג; root guard לכיוון מתג זרrootshow spanning-tree: מי root, למה, איזה פורט חסום, וכמה זמן עד שהוא נפתח. ארבעה שלבים. ובסוף: מחברים מתג לשקע של מחשב ורואים את הפורט מת — כמו שצריך.show spanning-treeS1# show spanning-tree VLAN0001 Spanning tree enabled protocol ieee <- ieee = PVST (802.1D). rstp = Rapid PVST Root ID Priority 32769 Address 0001.9776.2D5A <- the root's MAC Cost 19 Port 1(FastEthernet0/1) <- MY root port Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 000A.4171.1B1C <- my MAC. higher than root's -> I'm not root Interface Role Sts Cost Prio.Nbr Type Fa0/1 Root FWD 19 128.1 P2p <- toward root Fa0/2 Altn BLK 19 128.2 P2p <- the blocked one. Altn = alternate Fa0/3 Desg FWD 19 128.3 P2p <- designated for its segment
Root ID מול Bridge ID: אם זהים — 'This bridge is the root'. Role: Root / Desg / Altn. Sts: FWD / BLK.
PC> ping -t 192.168.1.2 (Realtime mode!) ... reply, reply, reply -> unplug the ACTIVE link (the one with FWD) ... timeout ×30 <- PVST: blocking 20 + listening 15 + learning 15 ≈ 30-50 s ... reply S1# show spanning-tree -> Fa0/2 Altn BLK became Root FWD all switches: spanning-tree mode rapid-pvst -> plug back, wait, unplug again ... timeout ×2 <- RSTP: 1-3 s STP ____ s RSTP ____ s
ההבדל בין 'המשתמשים התלוננו' ל'אף אחד לא שם לב'. ב-Realtime — ב-Simulation הזמן לא רץ.
root primary ו-priorityS3(config)# spanning-tree vlan 1 root primary S3# show spanning-tree Root ID Priority 24577 Address 00D0.BC5A.1234 This bridge is the root Bridge ID Priority 24577 (priority 24576 sys-id-ext 1) S2(config)# spanning-tree vlan 1 root secondary -> 28672 S1(config)# spanning-tree vlan 1 priority 4096 -> manual. multiples of 4096 only after root changes: the blocked port MOVES. why? the tree is rebuilt from the new root -> show spanning-tree on all three, before and after. which port is Altn now?
root primary = 24576. הפורט החסום זז כי הכול נמדד מחדש מה-root החדש. לפני/אחרי — לתעד.
! access port with a PC S1(config)# interface fa0/5 S1(config-if)# spanning-tree portfast S1(config-if)# spanning-tree bpduguard enable -> PC gets DHCP instantly (no 30 s wait) ! now replace the PC with a switch %SPANTREE-2-BLOCK_BPDUGUARD: Received BPDU on port Fa0/5 with BPDU Guard enabled. Disabling port. %PM-4-ERR_DISABLE: bpduguard error detected on Fa0/5, putting Fa0/5 in err-disable state S1# show interfaces status | include err Fa0/5 err-disabled recovery: disconnect the switch, then shutdown / no shutdown ! trunk toward a 'contractor' switch (priority 0!) S1(config)# interface gi0/1 S1(config-if)# spanning-tree guard root %SPANTREE-2-ROOTGUARD_BLOCK: Root guard blocking port GigabitEthernet0/1 on VLAN0001. S1# show spanning-tree inconsistentports -> Gi0/1 Root Inconsistent. our root stays our root
bpduguard: פורט מחשב שקיבל BPDU → err-disabled. root guard: פורט שלא יהפוך root port → root-inconsistent. שתי הודעות שצריך לזהות.
portfast רק על פורט של תחנת קצה. על trunk — לולאה זמנית בכל שינוי.show spanning-tree ב-S2: Root ID Address 0001.9776.2D5A, Bridge ID Address 000A.4171.1B1C, Fa0/1 Root FWD, Fa0/2 Altn BLK. המנהל רוצה ש-S2 יהיה root. מה עושים, ומה יקרה ל-Fa0/2?S2 לא root (Bridge ≠ Root). ה-root הוא מי שיש לו MAC 0001.9776.2D5A (S1 כנראה). Fa0/2 חסום.S2(config)# spanning-tree vlan 1 root primary → priority 24576 < 32768.show spanning-tree ב-S2 → 'This bridge is the root'. Root ID = Bridge ID.Fa0/2: ה-root כל פורטיו Desg FWD — Fa0/2 נפתח. הפורט החסום עבר למתג אחר: על המקטע S1–S3, הצד עם ה-BID הגבוה יותר.show spanning-tree ×3 לפני ואחרי, עם הסבר: 'הפורט החסום זז מ-S2 Fa0/2 ל-S3 Fa0/x כי…'.root primary, ו-root אין לו פורט חסום — החסימה עוברת לצד הרחוק של העץ. לפני/אחרי במסמך.| מושג | באנגלית | הסבר |
|---|---|---|
| פורט חלופי | Alternate Port | הפורט החסום ב-RSTP — מוכן להיפתח |
| מושבת בגלל שגיאה | err-disabled | פורט שכובה אוטומטית — bpduguard, port security |
| root לא עקבי | Root Inconsistent | פורט שנחסם ע"י root guard |
| זמן אמת | Realtime | מצב PT שבו הזמן רץ — למדידות |
Root ID = Bridge ID. מה זה אומר?Altn BLK — מה?ping נכשלו ב-PVST? ב-RSTP?root primary — priority?priority 5000 — מתקבל?root, הפורט החסום זז. למה?SPANTREE-2-BLOCK_BPDUGUARD — מה קרה?err-disabled?Root Inconsistent — מה?Simulation?Root ID = Bridge ID? Altn BLK? rapid-pvst — הפקודה? err-disabled — שחזור? 🎯 המטרה: לפני/אחרי מתועד, זמני התכנסות, ושתי הודעות הגנה מצולמות.
📦 ציוד: 6 תחנות קצה · 3 מתגי 2960 · קישורים כפולים · תוכנה: Packet Tracer
📂 קבצים:
show spanning-tree ×3. טבלה: מתג · Bridge ID · root? · תפקיד כל פורט. מי root ולמה. איזה פורט חסום ולמה בצד הזה. השאלות. Completion.ping -t · ניתוק הפעיל · ספרו כשלונות: STP . show spanning-tree — מי נפתח. rapid-pvst בכולם · חיבור · ניתוק · RSTP .root primary למתג שהמנהל רוצה · secondary · priority ידני. show spanning-tree ×3 לפני/אחרי. איפה החסום עכשיו ולמה.STP.pkt: PC על Fa0/5 עם portfast+bpduguard. DHCP מיד? החליפו במתג → ההודעה: . show interfaces status. שחזור.priority 0 על Gi0/1. בלי root guard: מי root? עם: ההודעה · show spanning-tree inconsistentports.| # | מה למלא | חישוב · הערות · ראיות (פלט פקודה) |
|---|---|---|
| 1 | טבלת 5.1.9: · root כי · חסום כי · Completion % | |
| 2 | STP שנ׳ · RSTP שנ׳ | |
| 3 | 5.2.5: לפני · אחרי · חסום עבר ל- כי | |
| 4 | bpduguard: · שחזור | |
| 5 | root guard: בלי · עם |
show spanning-tree לפני ואחרי · הפורט נכבה בהזרקת BPDU| המלכודת | מה עושים |
|---|---|
מודדים התכנסות ב-Simulation mode | Realtime. ב-Simulation הזמן לא רץ. |
portfast על הפורט לכיוון המתג השני | רק פורט של תחנת קצה. על trunk — לולאה זמנית בכל שינוי. |
אחרי bpduguard מנסים no shutdown בלי לנתק את המתג | הפורט יקבל BPDU שוב ויירד שוב. קודם לנתק, אז shut/no shut. |
מצפים ש-root primary יעבוד מיד אם מישהו כבר ב-priority 0 | root primary = 24576 או 4096 פחות מה-root הנוכחי. אם ה-root ב-0 — אי אפשר לרדת מתחת. צריך להעלות אותו. |
Examining a Redundant DesignPVST: להגדיר root שונה ל-VLAN 10 ו-VLAN 20 ולראות שני עציםEtherChannel בין SW1–SW2 — שני קישורים בלי חסימה (SRWE 6)הגרסה המודפסת של דף העבודה — בחוברת (PDF) בלשונית "למד".
rootכיתה_שבוע19_שם-משפחה_שם-פרטי · לתיק העבודות: ‹שם›_מיתוג/| על מה | XP | איך |
|---|---|---|
| Completion במעבדה | 150 | אחוז ה-Completion × 1.5 (Packet Tracer) |
| התוצר (קובץ + תיעוד) | 50 | הוגש עם שם קובץ לפי התבנית ותיעוד — המורה מסמן |
| בונוס: ההרחבה | 50 | הפעילות ב'להעמקה' / 'מתקדמים' הושלמה |
סה"כ עד 250 XP. נרשם ב-Moodle אחרי שהמורה מאשר.
M3 · סניף 1 — שכבה 2 · עד 17/12/2026 (שבוע ~13)
אחרי היחידה הזו אתם יכולים:
root primary · portfast · bpduguard · root guard · RSTPנושאי המחוון שנסגרים כאן:
מה נכנס לספר/ל-pkt: STP PVST/Rapid-PVST · ⭐ Root-Bridge ידני (14) בונוס 5 נק' · BPDU-Guard · ROOT-Guard — 3 נושאים מודגשים, 9 נק' + בונוס
STP נלמד בשבוע 18 (ינואר) — M3 הוא 17/12. לפרויקט: ללמוד מוקדם מ-Spanning Tree Protocol.docx (ICND2/01) או להגיש את סעיף ה-STP ב-M4הדרגה שלכם — ב-Moodle. ה-XP האישי פרטי; לוח ההישגים באתר מציג חוליות בלבד.